/**
 * Author:   YASUO
 * Date:     2018/6/20 11:57
 * Description:
 */
package com.rljk.baseservice.impl;

import com.rljk.baseservice.BaseCaidanService;
import com.rljk.common.dao.DaoSupport;
import com.rljk.domain.common.PageData;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by YASUO on 2018/6/20.
 */
@Service("baseCaidanService")
public class BaseCaidanServiceImpl implements BaseCaidanService {

    @Resource(name = "daoSupport")
    private DaoSupport dao;

    @Override
    public List<PageData> findList()throws  Exception{
        PageData pd = new PageData();
        return (List<PageData>)dao.findForList("HeadlinesInMapper.getCaiDanList",pd);
    }

    @Override
    public List<PageData> getHeadlinesById(PageData pd) throws Exception {
        return(List<PageData>) dao.findForList("HeadlinesInMapper.getHeadlinesById",pd);
    }
}
